package com.crane.oss.job;


import com.crane.oss.school.service.ClassesInfoService;
import com.crane.oss.school.service.TaskService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class StudentSkipropeJob {

    @Resource
    protected TaskService taskService;

    @Scheduled(cron = "0 0/5 * * * ?")
    public void execute(){
        taskService.compluteTaskSkip();
        taskService.compluteTaskState();
    }



}
